package com.example.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * TODO
 *
 * @author ding
 * @since 2024/5/31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("marker")
public class Marker {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Double lng;
    private Double lat;
    private Integer projectId;
    /** 信息窗体信息 */
    private String content;
    /** 标点对应的地址 */
    private String address;

    private String info;
    private Integer isDeleted;

    /** 乐观锁版本号 */
    @ApiModelProperty("乐观锁版本号")
    @Version
    @TableField(value = "version", fill = FieldFill.INSERT)
    private Integer version;

    /** 创建时间 */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /** 更新时间 */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private String projectName;
    @TableField(exist = false)
    private LocalTime beginTime;
    @TableField(exist = false)
    private LocalTime endTime;
}
